﻿ using System;

namespace TopBuilds.Restaurant.Data
{
    public class PrintTemplate
    {
        #region 属性
        private int _id;
        private string _name;
        private int _version;
        private int _width;
        private int _headHeight;
        private int _bodyHeight;
        private int _footHeight;
        #endregion 

        #region 构造
        public PrintTemplate()
        {
            _name             = null;
            _version          = 0;
            _width            = 0;
            _headHeight       = 0;
            _bodyHeight       = 0;
            _footHeight       = 0;
        }

        public PrintTemplate(string name)
        {
            _name            = name;
            _version         = 0;
            _width           = 0;
            _headHeight      = 0;
            _bodyHeight      = 0;
            _footHeight      = 0;
        }

        public PrintTemplate(string name, int version)
        {
            _name            = name;
            _version         = version;
            _width           = 0;
            _headHeight      = 0;
            _bodyHeight      = 0;
            _footHeight      = 0;
        }

        public PrintTemplate(string name, int version, int width)
        {
            _name           = name;
            _version        = version;
            _width          = width;
            _headHeight     = 0;
            _bodyHeight     = 0;
            _footHeight     = 0;
        }

        public PrintTemplate(string name, int version, int width, int headHeight)
        {
            _name           = name;
            _version        = version;
            _width          = width;
            _headHeight     = headHeight;
            _bodyHeight     = 0;
            _footHeight     = 0;
        }

        public PrintTemplate(string name, int version, int width, int headHeight, int bodyHeight)
        {
            _name           = name;
            _version        = version;
            _width          = width;
            _headHeight     = headHeight;
            _bodyHeight     = bodyHeight;
            _footHeight     = 0;
        }

        public PrintTemplate(string name, int version, int width, int headHeight, int bodyHeight, int footHeight)
        {
            _name           = name;
            _version        = version;
            _width          = width;
            _headHeight     = headHeight;
            _bodyHeight     = bodyHeight;
            _footHeight     = footHeight;
        }
        #endregion

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public int version
        {
            get { return _version; }
            set { _version = value; }
        }

        public int width
        {
            get { return _width; }
            set { _width = value; }
        }

        public int HeadHeight
        {
            get { return _headHeight; }
            set { _headHeight = value; }
        }

        public int BodyHeight
        {
            get { return _bodyHeight; }
            set { _bodyHeight = value; }
        }

        public int FootHeight
        {
            get { return _footHeight; }
            set { _footHeight = value; }
        }
        public override string ToString()
        {
            return Name;
        }
    }
}
